<?php
   header("Content-type: text/html; charset=utf-8"); 
   include ('config.php');
    $sql = "select * from depart";
    $result = mysql_query($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>注册</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" >
    <link rel="stylesheet" href="css/font-awesome.css" >
    <link rel="stylesheet" href="css/animate.css" >
    <link rel="stylesheet" href="css/admin-style.css?v=2.2.0" >
    <script src="css/jquery-2.1.1.min.js"></script>
    <script src="css/layer.js"></script>
	<meta name="description" content="mobile first, app, web app, responsive, admin dashboard, flat, flat ui">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 
	<link rel="stylesheet" href="css/bootstrap.css">
	<link rel="stylesheet" href="css/font-awesome.min.css">
	<link rel="stylesheet" href="css/style.css">
  <!--[if lt IE 9]>
    <script src="js/ie/respond.min.js"></script>
    <script src="js/ie/html5.js"></script>
  <![endif]-->
</head>
<body>
  <section id="content">
    <div class="main padder">
      <div class="row">
        <div class="col-lg-4 col-offset-4 m-t-large">
          <section class="panel">
		  <div class="panel-heading text-center">
		    <h5>注册</h5>
		  </div>
            <form name="form" action="signup.php" class="padder" id="form"  method="post">
				<div class="padder">
					<label class="control-label">用户名</label>
					<input name="username" type="text"  class="form-control" placeholder="用户名">
				</div>
				<div class="padder">
					<label class="control-label">密码</label>
					<input name="password" type="password" class="form-control" placeholder="密码">
				</div>
				<div class="padder">
					<label class="control-label">所属部门</label>
					<select class="form-control" name="depart" type="text" placeholder="所属部门">
					<?php
					while($r=mysql_fetch_array($result))
				 {
				?>
					 <option value="<?php echo $r['d_id']?>"><?php echo $r['d_name']?></option>
				<?php 
				 }
				?>
					</select>
				</div>
				<div class="checkbox">
					<label>
					  <input type="checkbox">我已阅读并同意相关服务条款和隐私政策<a href="#"></a>
					</label>
				</div>
            <button type="submit" class="btn btn-info btn-block">注册</button>
            <div class="line line-dashed"></div>
            <p class="text-muted text-center"><small>已有账号?</small></p>

            <a href="signin.html" class="btn btn-white btn-block">登录</a>
            <a href="signin1.html" class="btn btn-white btn-block">管理员登录</a>
            </form>
          </section>
        </div>
      </div>
    </div>
  </section>
  <!-- footer -->
  <footer id="footer">
    <div class="text-center padder clearfix">
      <p>
        <small>&copy; 山东舜网传媒股份有限公司</small><br><br>
      </p>
    </div>
  </footer>
  <!-- / footer -->
	<script src="js/jquery.min.js"></script>
  <!-- Bootstrap -->
  <script src="js/bootstrap.js"></script>
  <!-- app -->
  <script src="js/app.js"></script>
  <script src="js/app.plugin.js"></script>
  <script src="js/app.data.js"></script>
</body>
</html>